package com.iotechn.unimall.app.api.plantcategory;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.iotechn.unimall.data.domain.PlantGoodsCategoryDO;
import com.iotechn.unimall.data.mapper.PlantGoodsCategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PlantGoodsCategoryServiceImpl implements PlantGoodsCategoryService {

    @Autowired
    private PlantGoodsCategoryMapper plantGoodsCategoryMapper;

    @Override
    public Object geyAllCategory(Long userId) throws Exception {
        return plantGoodsCategoryMapper.selectList(new EntityWrapper<PlantGoodsCategoryDO>().eq("status", 0));
    }
}
